package com.maven.manager.controller.article;

import com.center.api.model.EduArticle;
import com.maven.manager.service.article.ArticleService;
import jdk.nashorn.internal.ir.annotations.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("article")
public class ArticleController {

        @Reference
    private ArticleService articleService;

    @RequestMapping("list")
    public List<EduArticle> list(){
        return articleService.list();
    }
}
